package com.yswy.domain.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.yswy.domain.common.BasePojo;
import com.yswy.domain.entity.user.User;
import com.yswy.domain.vo.gld.addOrUpate.SoftnessAddOrUpdate;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

@Data
@Builder
@AllArgsConstructor
@Api(tags = "软著")
@TableName(value = "softness")
public class Softness  extends BasePojo<PackageManage> {
    @ApiModelProperty("软著")
    private String softness;
    @ApiModelProperty("软著信用代码")
    private String softnessNo;
    @ApiModelProperty("包名")
    private String packageName;

    public Softness(SoftnessAddOrUpdate softnessAddOrUpdate, User user){
        this.softness =softnessAddOrUpdate.getSoftness();
        this.softnessNo =softnessAddOrUpdate.getSoftnessNo();
        this.packageName =softnessAddOrUpdate.getPackageName();
        super.setCreateBy(user.getId().longValue());
    }
    public Softness(){

    }
}
